//引入request
import request from './request'
//获取轮播图的api数据
export const findBanner = function () {
  return request({ url: '/mall-api/index/findBanner' })
}

//获取一级分类的api数据
export const findCategory1 = function () {
  return request({ url: '/mall-api/index/findCategory1' })
}

//获取猜你喜欢数据api
export const findGoodsList = function () {
  return request({ url: '/mall-api/index/findListGoods' })
}
//获取人气推荐数据api
export const findRecommendGoods = function () {
  return request({ url: '/mall-api/index/findRecommendGoods' })
}

//获取商品列表详情数据api
export const findGoodsListPageAndLimit = function (params) {
  return request({ url: `/mall-api/goods/list/${params.page}/${params.limit}` })
}
